﻿#ifndef CAMERAFORM_H
#define CAMERAFORM_H

#include <QWidget>
#include "AiPtuStruct.h"
namespace Ui
{
    class CameraForm;
}

class CameraForm : public QWidget
{
    Q_OBJECT

public:
    explicit CameraForm(QWidget* parent = nullptr);
    ~CameraForm();

    void onGetCameraParam(QJsonObject);
    void onAlarmImage(WsBinHeader header, QByteArray image, AlarmExtern alarmExtern);

private slots:
    void on_btn_getparam_clicked();

    void on_btn_setparam_clicked();


    void on_btn_getimage_clicked(bool checked);

private:
    Ui::CameraForm* ui;
    QTimer* m_timer;
};

#endif // CAMERAFORM_H
